// 基于template/src/widgets/{{appEntities}}/{{ctrls@SEARCHFORM}}-searchform/{{spinalCase ctrl.codeName}}-searchform-model.ts.hbs生成
import { ISearchFormModel } from '@/core';

function getModel(): ISearchFormModel {
	return {
		name: 'searchform',
		caption: '',
		codeName: 'Default',
		cssName: '',
		controlType: 'SEARCHFORM',
		formStyle: '',
		entityCodeName: 'AUTH_PROVIDER',
		keyPSAppDEField: 'Id',
		majorPSAppDEField: 'Name',
		searchButtonStyle: 'DEFAULT',
		searchButtonPos: '',
		enableAutoSearch: false,
		layoutType: 'TABLE_24COL',
		detailModel: getDetailModel(),
		valueRule: getValueRule(),
		createDefaultItems: getCreateDefaultItems(),
	};
}

function getDetailModel() {
	return {
		formpage1: {
			caption: '常规条件',
			captionItemName: '',
			name: 'formpage1',
			codeName: 'formpage1',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMPAGE',
			showCaption: false,
			enableAnchor: false,
			showMoreMode: 0,
		},
	};
}

function getCreateDefaultItems() {
	return [];
}

function getValueRule() {
	return [];
}

export const model = getModel();
